/*
 * @author: sanbao
 * @Date: 2022-08-06 15:38:12
 */
const TOKEN_KEY = "token"

// 存 token
function setToken(token: string) {
    localStorage.setItem(TOKEN_KEY, token)
}
// 取 token
function getToken() {
    return localStorage.getItem(TOKEN_KEY)
}
// 退出
function removeUser() {
    return localStorage.removeItem(TOKEN_KEY)
}
// 抛
export {
    setToken,
    getToken,
    removeUser
}